package javabasics.netty.login.protocol.request;

import javabasics.netty.login.protocol.Packet;
import lombok.Data;
import lombok.NoArgsConstructor;

import static javabasics.netty.login.protocol.command.Command.MESSAGE_REQUEST;

/**
 * @Author suxiaoxiao
 * @Date 2019/9/17 21:25
 * @Version 1.0
 */
@Data
@NoArgsConstructor
public class MessageRequestPacket extends Packet {

    private String toUserId;

    private String message;

    public MessageRequestPacket(String toUserId, String message) {
        this.toUserId = toUserId;
        this.message = message;
    }

    @Override
    public Byte getCommand() {
        return MESSAGE_REQUEST;
    }

}
